package source.model;

import source.model.type.GameObjectType;

/**
 * Utility class meant to create all GameData objects needed for the system.
 * @author Sean Larson
 *
 */
public abstract class GameDataFactory {

	public static GameData createGameData( GameObjectType got ) {
		switch (got) {
			case UNIT:
				return new UnitData();
			case BASE:
				return new BaseData();
			case TERRAIN:
				return new TerrainData();
			case ITEM:
				return new ItemData();
			case AREAEFFECT:
				return new AreaEffectData();
			default:
				return null;
		}
	}
}
